package com.spi.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("user-service")
public interface UserFeign {

    @GetMapping("/user/trans/getCousumerStatusByMessageId/{id}")
    public int getCousumerStatus(@PathVariable("id") String messageId);

    @PutMapping("/user/trans/updateCousumerStatusByMessageId/{messageId}/{status}")
    public int updateCousumerStatusByMessageId(@PathVariable("messageId") String messageId,@PathVariable("status") int status);
}
